<?php
namespace App\Controller;
use Think\Controller;
class ClubController extends Controller {
    public function index(){

    }
    public function clubjson(){
    	//徐镜宁做的获取俱乐部详细信息8.24
        $club=M('club');
        $clubid=$_GET['clubid'];
        $allclub=$club->where("clubid='$clubid'")->select();
        var_dump($allclub);
        echo json_encode($allclub);
    }
    public function clublist(){
        //徐镜宁做获取俱乐部列表8.24
        $clublist = M('club');
        $allclublist = $clublist->field('yuejian_club.clubname,yuejian_club.clubphoto')->select();
        echo json_encode($allclublist);
    }
}